import java.util.Scanner;

public class L7 {
    public static void main(String[]args){
        Scanner in= new Scanner(System.in);
        System.out.println("是否为商店会员：");
        String answer=in.nextLine();
        Scanner Sc=new Scanner(System.in);
        System.out.println("输入购买商品总价格：");
        double price=Sc.nextDouble();
        switch (answer){
            case"yes":
                if(price >=100){
                    System.out.println("打折后价格为："+price*0.8);
                }else{
                    System.out.println("打折后价格为："+price*0.9);

                }break;
            case"no":
                if(price >=100){
                    System.out.println("打折后价格为："+price*0.9);
                }else{
                    System.out.println("打折后价格为："+price);

                }break;
            default:
                System.out.println("请输入yes或者no，谢谢");
        }
        System.out.println("祝你购物愉快期待下次光临。");
    }
}
